{% extends  'partials/base.html' %}
{%  block title %}商品信息 {% endblock%}
{% block content %}
{% load crispy_forms_tags %}
<div class="container">
    <div class="row my-4">
        <div class="col-md-4">
            {% for message in messages %}
            {% if message %}
            <div class="alert alert-{{message.tags}}">
                {{message}}
            </div>
            {% endif %}
            {% endfor %}
            <div class="card">
                <div class="card-header bg-info text-white">
                    信息
                </div>
                <div class="card-body">
                    <form method="POST" class="uniForm" action="">
                        {% csrf_token %}
                        {{form|crispy}}
                        <input class="btn btn-info" type="submit" value="更新">
                    </form>
                </div>
                <div class="col-md-8">
                    <div class="card">
                        <div class="card">
                            <a class="card-header bg-info text-white"></a>
                                 <a class="btn btn success btn-sm float-right" href="{% url 'dashboard-product'%}">返回</a>
                            </div>
                           <form method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                {{user_form|crispy}}
                                {{profile_form|crispy}}
                           </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}